import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import * as API from './ultils/API'
import dayjs from 'dayjs'
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import './assets/font_ksv3oxibj3e/iconfont.css'
import './assets/font_ksv3oxibj3e/demo.css'
import '@/assets/font_ksv3oxibj3e/iconfont'

Vue.use(VueQuillEditor)
Vue.config.productionTip = false
Vue.prototype.$http = API

Vue.filter('time', function (val) {
  return dayjs(val * 1000).format('YYYY-MM-DD HH:mm:ss')
})
// Vue.filter('level', (v) => {
//   const map = {
//     一级: '',
//     二级: 'success',
//     三级: 'warning'
//   }
//   return map[v]
// })
new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
